﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DOTNETGROUP.Entities;
using DOTNETGROUP.Data;

public partial class Controls_ControlThongTinDichVuLeft : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienThiChuyenMucThuNhat();
        }
    }

    private void HienThiChuyenMucThuNhat()
    {
        int TotalRows = 0;
        string WhereClause = "1=1 and TrangThai=1";
        TList<DichVu> TList_TinTuc = DataRepository.DichVuProvider.GetPaged(WhereClause, "NgayCapNhat DESC", 0, 10, out TotalRows);
        if (TList_TinTuc.Count <= 0) return;
        dlChuyenMuc1.DataSource = TList_TinTuc;
        dlChuyenMuc1.DataBind();
    }

    public string GetTieuDe(object Char)
    {
        string s = Char.ToString();
        return Common.ConvertToUnSign(s);
    }
}